<?php
/*
 * @Author: hyman
 * @Date: 2022-02-15 12:09:29
 * @LastEditors: hyman
 * @LastEditTime: 2022-02-15 12:16:50
 * @Description: 请填写简介
 */

namespace app\common\validate\Contact;

//引入底层的验证器类
use think\Validate;

/**
 * 订单商品验证器
 */
class Contact extends Validate
{
     /**
     * 验证规则
     */
    protected $rule = [
        'nickname' => 'require', //必填
        'userid' => 'require', //必填
        'typeid' => 'require', //必填
        'phone' => 'require', //必填
        'gender' => 'require|egt:0', //必填
    ];

      /**
     * 提示消息
     */
    protected $message = [
        'nickname.require'    => '姓名必填',
        'userid.require'    => '用户ID未知',
        'typeid.require'    => '类型ID未知',
        'phone.require'    => '手机号码必填',
        'gender.require'    => '性别必填',
    ];
    
    /**
     * 验证场景
     */
    protected $scene = [
    ];
}